/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
$(document).ready(function(e) {
	if($G['part']=='site' && $('input[name=domain]').length==1){
		if(domain = $('input[name=domain]').val()){
			$('a[domain]',window.top.document).attr('href',domain).attr('target','_blank');
		}else{
			$('a[domain]',window.top.document).attr('href',"javascript:_alert('未设置站点域名');").removeAttr('target');
		}	
	}
});